import Layout from '@/layout'
const formRouter = [
  {
    path: '/formDesign',
    component: Layout,
    redirect: '/form',
    alwaysShow: true,
    name: 'formDesign',
    children:[
      {
        path: 'form',
        component: () => import('@/views/form/index'),
        meta: {
          title: '表单编辑 - '
        },
        name: 'form'
      },
      {
          path: 'editor',
          meta: {
            title: '表单编辑 - '
          },
          component: () => import('@/views/form/editor'),
          name: 'editor'
      },
      {
          path: 'preview',
          meta: {
            title: '表单预览 - '
          },
          component: () => import(/* webpackChunkName: 'root' */ '@/views/form/preview'),
          name: 'preview'
      },
      {
          path: 'publish',
          meta: {
            title: '表单发布 - '
          },
          component: () => import(/* webpackChunkName: 'root' */ '@/views/form/publish'),
          name: 'publish'
      },
      {
          path: 'statistics',
          meta: {
            title: '表单统计 - '
          },
          component: () => import(/* webpackChunkName: 'root' */ '@/views/form/statistics'),
          name: 'statistics'
      }
    ]
  }
]
export default formRouter